package tr.edu.boun.phys.springmassmodel;

import java.awt.geom.Point2D;

public class Vector2D extends Point2D.Double implements Cloneable {
	
	public Vector2D() {
		super(0.0, 0.0);
	}
	
	public Vector2D(double x, double y) {
		super(x, y);
	}
	
	public void set(double x, double y) {
		this.x = x;
		this.y = y;
	}
	
	public double getLength() {
		return Math.sqrt(x*x+y*y);
	}
}
